Skip to content

Style: regroup the argument lists that were one per line - #295

Merged
electricessence merged 1 commit into
masterfrom
style/regroup-args
Dec 2, 2026
Merged

electricessence merged 1 commit into
masterfrom
style/regroup-args

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

Style only: argument lists that were written one per line are regrouped. A call that fits in about 80 columns with => on its own line stays on one line; a longer one is broken into logical groups (_command, _call, _source, then _skip, _take, options, Config, _captures). One argument per line stays for nothing but chains of two or more dotted calls.

28 call sites in four files: MappedDbQuery.cs (5), MappedQuery.cs (15: WithOptions, WithConfig, WithSkip, WithTake, UsePool, the reader, stream, TryFirst/TrySingle calls, the chunk and stall streams), MappedQuery.Capture.cs (3) and MappedViews.cs (5).

No behavior change

  • The tokens of all four files are identical before and after (compared with all whitespace removed).
  • Every added line is within 80 columns (tab = 4).

Checks

  • Release 15,905 and Debug 15,884 tests pass (16 skipped).
  • Samples: 255 checks pass. Whole-solution MSBuild (Visual Studio): 0 errors.
  • dotnet format style and analyzers at info severity: 0 findings on all 28 checks. DocFX: 0 warnings.

Not touched: the other one-per-line lists in Source/, which are older than this change; they can be swept separately.

🤖 Generated with Claude Code

Calls that wrote one argument to a line now put their arguments in
logical groups, each line within 80 columns: the command, call and source
on one line, then the skip, take, options, configuration and captures on
the next. The same for the row-reader, stream and chunk-config calls of
the mapped query. Whitespace only: the tokens of the four files are
unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 0286b64 into master Dec 2, 2026
@electricessence
electricessence deleted the style/regroup-args branch December 2, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant